<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('流转单列表')" />
</head>
<body class="gray-bg">
     <div class="container-div">
        <div class="row">
            <div class="col-sm-12 search-collapse">
                <form id="formId">
                    <div class="select-list">
                        <ul>
                            <li>
                                <label>合同是否归档：</label>
                                <input type="text" name="contactArchived"/>
                            </li>
                            <li>
                                <label>合同编号：</label>
                                <input type="text" name="contractNumber"/>
                            </li>
                            <li>
                                <label>未回款领报告申请日期：</label>
                                <input type="text" class="time-input" placeholder="请选择未回款领报告申请日期" name="reportApplyDate"/>
                            </li>
                            <li>
                                <label>登记单号：</label>
                                <input type="text" name="registrationNumber"/>
                            </li>
                            <li>
                                <label>领取报告对应欠款金额：</label>
                                <input type="text" name="getReportOwnAmount"/>
                            </li>
                            <li>
                                <label>未回款原因：</label>
                                <input type="text" name="notPayReason"/>
                            </li>
                            <li>
                                <label>预计回款时间：</label>
                                <input type="text" class="time-input" placeholder="请选择预计回款时间" name="estimateMoneyReturnTime"/>
                            </li>
                            <li>
                                <label>报告号：</label>
                                <input type="text" name=" reportNumber"/>
                            </li>
                            <li>
                                <label>报告邮寄日期：</label>
                                <input type="text" class="time-input" placeholder="请选择报告邮寄日期" name="reportMailingDate"/>
                            </li>
                            <li>
                                <label>下单日期：</label>
                                <input type="text" class="time-input" placeholder="请选择下单日期" name="orderDate"/>
                            </li>
                            <li>
                                <label>流转单号：</label>
                                <input type="text" name="sequenceNumber"/>
                            </li>
                            <li>
                                <label>委托单位：</label>
                                <input type="text" name="enterprise"/>
                            </li>
                            <li>
                                <label>受检单位/项目名称：</label>
                                <input type="text" name="projectName"/>
                            </li>
                            <li>
                                <label>检测方案：</label>
                                <input type="text" name="detectionScheme"/>
                            </li>
                            <li>
                                <label>合同金额：</label>
                                <input type="text" name="contractAmount"/>
                            </li>
                            <li>
                                <label>金额备注：</label>
                                <input type="text" name="amountRemarks"/>
                            </li>
                            <li>
                                <label>业务来源：</label>
                                <input type="text" name="transactionSource"/>
                            </li>
                            <li>
                                <label>联系人：</label>
                                <input type="text" name="contact"/>
                            </li>
                            <li>
                                <label>电话：</label>
                                <input type="text" name="phoneNumber"/>
                            </li>
                            <li>
                                <label>检测地址：</label>
                                <input type="text" name="detectionAddressArea"/>
                            </li>
                            <li>
                                <label>检测地址：</label>
                                <input type="text" name="detectionAddressCounty"/>
                            </li>
                            <li>
                                <label>业务人员：</label>
                                <input type="text" name="businessPeople"/>
                            </li>
                            <li>
                                <label>运营中心：</label>
                                <input type="text" name="operationCenter"/>
                            </li>
                            <li>
                                <label>涉及业务员变动：</label>
                                <input type="text" name="changeOfSalesman"/>
                            </li>
                            <li>
                                <label>运营备注：</label>
                                <input type="text" name="businessComments"/>
                            </li>
                            <li>
                                <label>到账时间：</label>
                                <input type="text" class="time-input" placeholder="请选择到账时间" name="paymentDate"/>
                            </li>
                            <li>
                                <label>单次到账金额：</label>
                                <input type="text" name="oncePaymentAmount"/>
                            </li>
                            <li>
                                <label>到账合计：</label>
                                <input type="text" name="totalPayment"/>
                            </li>
                            <li>
                                <label>欠款金额：</label>
                                <input type="text" name="amountOwing"/>
                            </li>
                            <li>
                                <label>开票日期：</label>
                                <input type="text" class="time-input" placeholder="请选择开票日期" name="fapiaoDate"/>
                            </li>
                            <li>
                                <label>单次开票金额：</label>
                                <input type="text" name="onceFapiaoAmount"/>
                            </li>
                            <li>
                                <label>发票合计：</label>
                                <input type="text" name="totalFapiaoAmount"/>
                            </li>
                            <li>
                                <label>财务备注：</label>
                                <input type="text" name="financeNote"/>
                            </li>
                            <li>
                                <label>附件：</label>
                                <input type="text" name="attachment"/>
                            </li>
                            <li>
                                <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
                                <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
                            </li>
                        </ul>
                    </div>
                </form>
            </div>

            <div class="btn-group-sm" id="toolbar" role="group">
                <a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="system:sheet:add">
                    <i class="fa fa-plus"></i> 添加
                </a>
                <a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="system:sheet:edit">
                    <i class="fa fa-edit"></i> 修改
                </a>
                <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="system:sheet:remove">
                    <i class="fa fa-remove"></i> 删除
                </a>
                <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="system:sheet:export">
                    <i class="fa fa-download"></i> 导出
                </a>
            </div>
            <div class="col-sm-12 select-table table-striped">
                <table id="bootstrap-table"></table>
            </div>
        </div>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var editFlag = [[${@permission.hasPermi('system:sheet:edit')}]];
        var removeFlag = [[${@permission.hasPermi('system:sheet:remove')}]];
        var prefix = ctx + "system/sheet";

        $(function() {
            var options = {
                url: prefix + "/list",
                createUrl: prefix + "/add",
                updateUrl: prefix + "/edit/{id}",
                removeUrl: prefix + "/remove",
                exportUrl: prefix + "/export",
                modalName: "流转单",
                columns: [{
                    checkbox: true
                },
                {
                    field: 'id',
                    title: '唯一主键',
                    visible: false
                },
                {
                    field: 'contactArchived',
                    title: '合同是否归档'
                },
                {
                    field: 'contractNumber',
                    title: '合同编号'
                },
                {
                    field: 'reportApplyDate',
                    title: '未回款领报告申请日期'
                },
                {
                    field: 'registrationNumber',
                    title: '登记单号'
                },
                {
                    field: 'getReportOwnAmount',
                    title: '领取报告对应欠款金额'
                },
                {
                    field: 'notPayReason',
                    title: '未回款原因'
                },
                {
                    field: 'estimateMoneyReturnTime',
                    title: '预计回款时间'
                },
                {
                    field: ' reportNumber',
                    title: '报告号'
                },
                {
                    field: 'reportMailingDate',
                    title: '报告邮寄日期'
                },
                {
                    field: 'orderDate',
                    title: '下单日期'
                },
                {
                    field: 'sequenceNumber',
                    title: '流转单号'
                },
                {
                    field: 'enterprise',
                    title: '委托单位'
                },
                {
                    field: 'projectName',
                    title: '受检单位/项目名称'
                },
                {
                    field: 'detectionScheme',
                    title: '检测方案'
                },
                {
                    field: 'contractAmount',
                    title: '合同金额'
                },
                {
                    field: 'amountRemarks',
                    title: '金额备注'
                },
                {
                    field: 'transactionSource',
                    title: '业务来源'
                },
                {
                    field: 'contact',
                    title: '联系人'
                },
                {
                    field: 'phoneNumber',
                    title: '电话'
                },
                {
                    field: 'detectionAddressArea',
                    title: '检测地址'
                },
                {
                    field: 'detectionAddressCounty',
                    title: '检测地址'
                },
                {
                    field: 'businessPeople',
                    title: '业务人员'
                },
                {
                    field: 'operationCenter',
                    title: '运营中心'
                },
                {
                    field: 'changeOfSalesman',
                    title: '涉及业务员变动'
                },
                {
                    field: 'businessComments',
                    title: '运营备注'
                },
                {
                    field: 'paymentDate',
                    title: '到账时间'
                },
                {
                    field: 'oncePaymentAmount',
                    title: '单次到账金额'
                },
                {
                    field: 'totalPayment',
                    title: '到账合计'
                },
                {
                    field: 'amountOwing',
                    title: '欠款金额'
                },
                {
                    field: 'fapiaoDate',
                    title: '开票日期'
                },
                {
                    field: 'onceFapiaoAmount',
                    title: '单次开票金额'
                },
                {
                    field: 'totalFapiaoAmount',
                    title: '发票合计'
                },
                {
                    field: 'financeNote',
                    title: '财务备注'
                },
                {
                    field: 'attachment',
                    title: '附件'
                },
                {
                    title: '操作',
                    align: 'center',
                    formatter: function(value, row, index) {
                        var actions = [];
                        actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.id + '\')"><i class="fa fa-edit"></i>编辑</a> ');
                        actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.id + '\')"><i class="fa fa-remove"></i>删除</a>');
                        return actions.join('');
                    }
                }]
            };
            $.table.init(options);
        });
    </script>
</body>
</html>